package com.yc.booktable.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zbh
 * @since 2022-06-06
 */
@TableName("admin_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminUser implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

    private String name;

    private Integer account;

    private String password;

    private Integer phone;

    private String email;

    private String address;

    private Integer state;

    
    public Long getId() {
        return id;
    }

      public void setId(Long id) {
          this.id = id;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public Integer getAccount() {
        return account;
    }

      public void setAccount(Integer account) {
          this.account = account;
      }
    
    public String getPassword() {
        return password;
    }

      public void setPassword(String password) {
          this.password = password;
      }
    
    public Integer getPhone() {
        return phone;
    }

      public void setPhone(Integer phone) {
          this.phone = phone;
      }
    
    public String getEmail() {
        return email;
    }

      public void setEmail(String email) {
          this.email = email;
      }
    
    public String getAddress() {
        return address;
    }

      public void setAddress(String address) {
          this.address = address;
      }
    
    public Integer getState() {
        return state;
    }

      public void setState(Integer state) {
          this.state = state;
      }

    @Override
    public String toString() {
        return "AdminUser{" +
              "id=" + id +
                  ", name=" + name +
                  ", account=" + account +
                  ", password=" + password +
                  ", phone=" + phone +
                  ", email=" + email +
                  ", address=" + address +
                  ", state=" + state +
              "}";
    }
}
